package com.xebest.web.mapper.write;

import com.xebest.web.model.XeVenStoreAllotEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface XeVenStoreAllotWriteMapper {
    /**
     * 根据主键删除
     *
     * @author 杜春静
     */
    int deleteStoreAllotById(Integer id) throws Exception;

    /**
     * 添加调拨单
     *
     * @author 杜春静
     */
    int insertStoreAllot(XeVenStoreAllotEntity record) throws Exception;

    /**
     * 根据参数更新调拨单
     *
     * @author 杜春静
     */
    int updateStoreAllotByParam(@Param("record") XeVenStoreAllotEntity record) throws Exception;

    /**
     * 更新调拨单
     *
     * @author 杜春静
     */
    int updateStoreAllotByCode(XeVenStoreAllotEntity entity) throws Exception;

    /**
     * 批量更新调拨单
     *
     * @author 杜春静
     */
    int batchUpdateStoreAllot(List<XeVenStoreAllotEntity> record) throws Exception;

}